set JAVAHOME=c:\jdk1.4.1


javac -classpath ..\..\src\classes ..\..\src\fr\emn\win32input\jdirectinput\JDirectInput.java
javah -classpath ..\..\src\classes fr.emn.win32input.jdirectinput.JDirectInput

@REM Visual Studio must be installed for the next command line
@REM The /D_USRDLL option gives access to MFC (e.g. the AfxGetInstance() method)
@REM dxguid.lib is for directx's Globally Unique Identifiers

cl -LD -I%JAVAHOME%\include -I%JAVAHOME%\include\win32 directinputwrapper.cpp /D_USRDLL /link dinput.lib dxguid.lib

mv directinputwrapper.dll ..

@del *.h
@del *.exp
@del *.lib
@del *.obj
